package org.point.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


import org.point.common.service.impl.BaseServiceImpl;
import org.point.common.util.DoPage;
import org.point.dao.TaskDao;
import org.point.domain.Task;
import org.point.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: ConvertRuleDetailServiceImpl  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午4:02:01
 */
@Service("TaskService")
public class TaskServiceImpl extends BaseServiceImpl<Task, Serializable> implements TaskService {
	
	@Autowired
	private TaskDao dao;

	public Integer countTask(DoPage<Task> page) {
		Integer result = dao.searchForTaskCount(page);
		return result;
	}

	public List<Task> searchTask(DoPage<Task> page) {
		List<Task> records = dao.searchForTask(page);
		return records;
	}


	public List<Task> findUsersList(Map<String, Object> map) {
	    List<Task> records = dao.searchTask(map);
		return records;
	}
	
}
